﻿@model IEnumerable<perfume.Models.DB.product>

@{
    ViewBag.Title = "PERFUME WEB";
}
<div id="default_contain">
    @foreach (var item in Model)
    {
        <div id="product_contain">
            <div id="product_image">
                <a href="../../Home/Details/@item.product_id">
                    <img alt="" src="../../images/@(item.image.Select(i => item.image).First())"
                                                                   width="150" height="200">
                </a>
            </div>
            <div id="product_name">
                <a>@item.product_name</a>
            </div>
            <div id="product_price">
                <em>@String.Format("{0:0,0 VNĐ}", Convert.ToInt32(item.price))</em>
            </div>
            <div id="product_cartbt">
                 <a href="../../ShoppingCart/AddToCart/@item.product_id" class="white_word_bold"> Add to cart</a>
            </div>
        </div>
    }
</div>